import request from '@/utils/request'

/*取水口基本信息台账表*/
//列表查询
const tableList = function (params = {}) {
  return request({
    url: '/zy-api/api/waterintakeinfo/findList',
    method: 'post',
    data: params
  })
}

//新增
const addData = function (params = {}) {
  console.log(params);
  return request({
    url: '/zy-api/api/waterintakeinfo/add',
    method: 'post',
    data: params
  })
}

//修改
const editData = function (params = {}) {
  return request({
    url: '/zy-api/api/waterintakeinfo/update',
    method: 'post',
    data: params
  })
}

//删除
const delData = function (params = {}) {
  return request({
    url: '/zy-api/api/waterintakeinfo/delete',
    method: 'post',
    data: params
  })
}

//审核
const auditHandle = function (params = {}) {
  return request({
    url: '/zy-api/api/waterintakeinfo/Review',
    method: 'post',
    data: params
  })
}

//查询监测点代码里面信息
const mpCdDetailList = function (params = {}) {
  return request({
    url: '/zy-api/api/wmFacilities/findList',
    method: 'post',
    data: params
  })
}

export {
  tableList,
  addData,
  editData,
  delData,
  auditHandle,
  mpCdDetailList
}